import _ from 'lodash';

export default {
  getHandshakeQuery(ctx) {
    const handshake =
      _.get(ctx, 'socket.handshake') || _.get(ctx, 'socket.socket.handshake');

    return _.get(handshake, 'query', {});
  },
};
